import request from '@/utils/request'

export function addHouseOwner(data) {
  return request({
    url: '/houseOwner',
    method: 'post',
    data
  })
}
export function updateHouseOwner(data) {
  return request({
    url: '/houseOwner',
    method: 'put',
    data
  })
}

export function getHouseOwnerByHouseId(id) {
  console.log('getHouseOwnerByHouseId:', id)
  return request({
    url: '/houseOwner/' + id,
    method: 'get'
  })
}

